<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/config/c.tld" prefix="c"%>
<%@ taglib prefix="fn" uri="/WEB-INF/config/fn.tld"%>
<%@ taglib prefix="fmt" uri="/WEB-INF/config/fmt.tld"%>

<!DOCTYPE HTML>
<html>
  <head>
    <title>信息管理</title>
    <script src="Metro/js/jquery-1.9.1.min.js"></script>
  </head>
  
  <body>
		<ul class="breadcrumb">
			<li>
				<a href="index.html">首页</a>
				<i class="icon-angle-right"></i>				
			</li>
			<li>
				<a href="#">友情链接修改</a>
				<i class="icon-angle-right"></i>
			</li>
		
		</ul>
		<div class="row-fluid ui-sortable">
			<div class="box span12">
				<div class="box-header" data-original-title>
					<h2><i class="halflings-icon white edit"></i><span class="break"></span>修改连接</h2>
					<div class="box-icon">
						<a href="#" class="btn-setting"><i class="halflings-icon white wrench"></i></a>
						<a href="#" class="btn-minimize"><i class="halflings-icon white chevron-up"></i></a>
						<a href="#" class="btn-close"><i class="halflings-icon white remove"></i></a>
					</div>
				</div>
				<div class="box-content">
					<form class="form-horizontal" action="blogroll/manage/updateDataBlogroll.html" method="post">
					<input type="hidden" class="span6 typeahead" name="id" value="${requestScope.blogroll.id }">
					  <fieldset>
						<div class="control-group">
						  <label class="control-label" for="date01">链接名称</label>
						  <div class="controls">
							<input type="text" class="span6 typeahead" id="cnBlogrollName" name="cnBlogrollName" value="${requestScope.blogroll.cnBlogrollName }">
							<span id="span1"></span>
						  </div>
						</div>
						<div class="control-group">
						  <label class="control-label" for="typeahead">链接地址 </label>
						  <div class="controls">
							<input type="text" class="span6 typeahead" id="urlBlogroll" name="urlBlogroll" value="${requestScope.blogroll.urlBlogroll }">
						 	<span id="span4"></span>
						  </div>
						</div>          
						
						<div class="form-actions">
						  <button type="submit" class="btn btn-primary">保存信息</button> 
						  <button type="reset" class="btn"  onclick="javascript:history.back();">返回</button>
						</div>
					  </fieldset>
					</form>   
				</div>
			</div><!--/span-->
		</div><!--/row-->
		<script>
			$("").click(function(){
				var cnBlogrollName=$("#cnBlogrollName").val();
				var enBlogrollName=$("#enBlogrollName").val();
				var rtwBlogrollName =$("#rtwBlogrollName").val();
				var urlBlogroll =$("#urlBlogroll").val();
				if(cnBlogrollName == ""){
					$("#span1").html("不能为空")
					return false;
				} else{
					$("#span1").html("");
				}
				if(enBlogrollName == ""){
					$("#span2").html("不能为空")
					return false;
				} else{
					$("#span2").html("");
				}
				if(rtwBlogrollName == ""){
					$("#span3").html("不能为空")
					return false;
				} else{
					$("#span3").html("");
				}
				if(urlBlogroll == ""){
					$("#span3").html("不能为空")
					return false;
				} else{
					$("#span3").html("");
				}
			})
		</script>
  </body>
</html>
